package com.asia5b.a5mall.home.adapter

import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import android.view.View
import android.view.ViewGroup
import com.asia5b.a5mall.home.R
import com.asia5b.a5mall.home.databinding.ItemChoicecountryAdapterBinding
import com.asia5b.a5mall.middleware.model.member.CountryModel
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Created by zhangyuncai on 2019/11/16.
 */
class ChoiceCountryAdapter(
        list: ArrayList<CountryModel>
) :
        BaseQuickAdapter<CountryModel, BaseDataBindingHolder<ItemChoicecountryAdapterBinding>>(R.layout.item_choicecountry_adapter, list) {
    override fun convert(helper: BaseDataBindingHolder<ItemChoicecountryAdapterBinding>, item: CountryModel) {
        val choicecountryAdapterBinding = helper.dataBinding!!
        choicecountryAdapterBinding.model=item
    }
}